// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 
// Source File Name:   EchoServer.java

package testmain;

import java.io.PrintStream;
import java.util.Map;
import org.quickserver.net.AppException;
import org.quickserver.net.model.GBServerDataAll;
import org.quickserver.net.server.QuickServer;

public class EchoServer
{

    public EchoServer()
    {
    }

    public static void main(String s[])
        throws AppException
    {
        QuickServer myServer = new QuickServer("testmain.EchoCommandHandler");
        myServer.setPort(9123);
        myServer.setName("EchoServer v 1.0");
        myServer.setTimeout(300000);
        myServer.setClientBinaryHandler("testmain.EchoCommandHandler");
        myServer.setClientData("org.quickserver.net.model.GBServerData");
        GBServerDataAll.devMap.put("00000002000180001100024000100001", "0102");
        GBServerDataAll.devMap.put("00000002000180001100019000300042", "0101");
        
        
        
       /* QuickServer myServer1 = new QuickServer("testmain.EchoCommandHandler");
        myServer1.setPort(9231);
        myServer1.setName("EchoServer v 1.0");
        myServer1.setTimeout(300000);
        myServer1.setClientBinaryHandler("testmain.EchoCommandHandler");
        myServer1.setClientData("org.quickserver.net.model.GBServerDataS");
        GBServerDataAll.devMap.put("34EAE7242E5F", "1");*/
        try
        {
            myServer.startServer();
            //myServer1.startServer();
        }
        catch(AppException e)
        {
            System.err.println((new StringBuilder("Error in server : ")).append(e).toString());
        }
    }
}
